/*
 * dem_task.c
 *
 *  Created on: 30.06.2010
 *      Author: Phil
 */

#include "dem_task.h"

#include <utility/trace.h>
#include <FreeRTOS.h>
#include <task.h>
#include "usb_task.h"

#define demTASK_PRIORITY					( tskIDLE_PRIORITY + 1 )

const char packet[] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };

static void vDemTask(void *pvParameters)
{
	while(1) {
		vTaskDelay(100);
		USBTask_Send(packet, sizeof(packet));
	}
}


void DemoTask_Init(void)
{

	xTaskCreate( vDemTask, (const signed char * const)"DEM", configMINIMAL_STACK_SIZE + 10, NULL, demTASK_PRIORITY, 0);
}
